<?php
class Vistec_Lightspeed_Model_Mysql4_Lightspeed_Collection extends Varien_Data_Collection_Db
{
    protected $_lightspeedTable;
 
    public function __construct()
    {
        $resources = Mage::getSingleton('core/resource');
        parent::__construct($resources->getConnection('lightspeed_read'));
        $this->_lightspeedTable = $resources->getTableName('lightspeed/lightspeed');
 
        $this->_select->from(
        		array('lightspeed'=>$this->_lightspeedTable),
 		       	array('*')
        		);
        $this->setItemObjectClass(Mage::getConfig()->getModelClassName('lightspeed/lightspeed'));
    }
}